Skip to content

Conversation

@rbs333
Copy link
Contributor

@rbs333 rbs333 commented Jul 30, 2024

⚠️ Large PR warning ⚠️

Primary changes:

  • convert to full use of redisvl
  • update to poetry project
  • update API to fully leverage pydantic
  • upgrade from material ui 4 to 5 and delete/update depreciated components
  • update styles to new branding
  • now pull seed data from S3 on load
  • add test and test workflow on pr
  • generally restructure to be more like https://github.com/tiangolo/full-stack-fastapi-template

// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the setup for vscode debugger. I like to check these in in case people want it for development purposes since it's a reference architecture.

RUN npm run build

FROM python:3.8-slim-buster AS ApiImage
FROM python:3.11-slim-buster AS ApiImage
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tylerhutcherson slim worked fine for this one so kept the smaller sizes

vector_distance: float
similarity_score: float

def __init__(self, *args, **kwargs):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarity score is derived from vector_distance so we can let pydantic handle the creation as part of making the object

product_vectors = json.load(f)
except FileNotFoundError:
print("File not found, reading from S3")
product_vectors = read_from_s3()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tylerhutcherson I think I'd like to simplify this flow. Either load from local volume or pull from S3. If you pull from S3 I don't think we need to write that data because it's only needed to populate the db and causes bloat in the docker containers.

I could add an additional script to pull this data into local for those developing locally but I think this is cleaner

Copy link
Collaborator

@tylerhutcherson tylerhutcherson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great. left a few cleanup comments, but pretty awesome

Copy link

@justin-cechmanek justin-cechmanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one comment. Lots of great work here

@rbs333 rbs333 merged commit 173a077 into master Aug 1, 2024
@rbs333 rbs333 deleted the feat/RAAE-9/repo-upgrades branch August 1, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants